package com.robot.dao.vo;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WebParserDetailVO implements Serializable {
    private String websiteUrl;

    public void setActionUnitDetail(String webSearchingDetail) {
        JSONObject jsonObject = JSONObject.parseObject(webSearchingDetail, JSONObject.class);
//        DatasourceDetailVO.WebSearchingDetail webSearchingDetail1 = new DatasourceDetailVO.WebSearchingDetail();
        this.websiteUrl = jsonObject.getString("websiteUrl");
    }
}

